package com.hjc.springbootmovies.service.Impl;

import com.hjc.springbootmovies.entity.ModelFsort;
import com.hjc.springbootmovies.mapper.MappingFsort;
import com.hjc.springbootmovies.service.FsortService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: HJC
 * Date: 2019/12/4
 * Time: 17:58
 * To change this template use File | Settings | File Templates.
 */
@Service
public class FsortServiceImpl implements FsortService {

    @Autowired
    private MappingFsort mappingFsort;


    @Override
    public List<ModelFsort> queryFsort() {
        return mappingFsort.queryFsort();
    }

    @Override
    public ModelFsort queryById(int sid) {
        return mappingFsort.queryById(sid);
    }

    @Override
    public int addFsort(ModelFsort modelFsort) {
        return mappingFsort.addFsort(modelFsort);
    }

    @Override
    public int deleteById(int sid) {
        return mappingFsort.deleteById(sid);
    }

    @Override
    public int updateFsort(ModelFsort modelFsort) {
        return mappingFsort.updateFsort(modelFsort);
    }
}
